<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <div id="app">
        <ul>
            <!-- 数组循环 -->
            <li v-for="(user,index) in users" :key="user.name"> 
                当前索引{{index}} ==> {{user.name}} ==> {{user.sex}}  ==> {{user.age}} <br>

                对象信息：
                 <!-- 对象循环 -->
                <span v-for="(v,k,i) in user">{{i}}=={{k}}=={{v}};  </span>

            </li>
        </ul>

        <ul>
             <!-- 数组循环 -->
            <li v-for="(num,index) in nums" :key="index">{{num}}</li>
        </ul>
    </div>

</body>
<script src="../node_modules/vue/dist/vue.js"></script>

    <script>
        let vm =  new Vue({
            el: "#app",
            data: {
                users:[
                    { name:"李长锐",sex:"男",age:19},
                    { name:"李锐",sex:"女",age:20},
                    { name:"李长",sex:"男",age:21},
                    { name:"长锐",sex:"女",age:22}
                ],
                nums:[1,2,4,23,21,21]
            }
        });
            
    </script>
</html>